package com.mt.utils;

/**
 * @author Wang
 * @Description 点赞key生成器
 * @date 2020/12/2-14:41
 */
public class RedisKeyGenerator {
    public static String getLikeKey(String userId, int commentId){
        StringBuilder builder = new StringBuilder();
        builder.append(userId);
        builder.append("::");
        builder.append(commentId);
        return builder.toString();
    }

    public static String getFilmKey(String userId, int filmId){
        StringBuilder builder = new StringBuilder();
        builder.append(userId);
        builder.append("::");
        builder.append(filmId);
        return builder.toString();
    }
}
